// JavaScript Document
function set_blank(){
	var a  = document.getElementById("com_box_area");
	a.innerHTML = "";
}

function get_text(){
	var a  = document.getElementById("com_box_area");
	var content = a.value;
	return content;
	a.innerHTML = "文明上网，文明评论！";
}
//评论数增1
function add_num(){
	var a = document.getElementById("num");
	var b = parseInt(a.innerHTML);
	b++;
	a.innerHTML=b;
}

function getRandomId(){
	var id = Math.floor(Math.random()*10000);
	var str = "apaksdhfkjasifeorhjbmvncjrovmasdbxvzzoeclofaslmqlpvsdffgfgf";
	var start = Math.floor(Math.random()*10);
	var name = "网友"+str.substring(start,6)+id+"\t("+returnCitySN["cip"]+")";
	return name;
}

function add_com_list(){

	var div = document.createElement("div");
	document.getElementById("com_list").appendChild(div);
	var news = get_text();
	var name = getRandomId();
	div.setAttribute("class","hhh");
	div.innerHTML = "<hr>"+name+"<br>"+"<span>"+news+"</span>";
	add_num();
}

